package com.zhengping.zpys.security.category;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author chenweizuan
 * @description This is description of class
 * @version 1.0
 * @date 2020/3/31 16:12
 */
@Service
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    CategoryMapper categoryMapper;

    @Override
    public Integer createCategory(Category category) {
        return categoryMapper.createCategory(category);
    }

    @Override
    public Integer updateCategory(Category category) {
        return categoryMapper.updateCategory(category);
    }

    @Override
    public List<Category> queryCategoryList() {
        return categoryMapper.queryCategoryList();
    }

    @Override
    public Integer deleteCategory(Long[] categoryIds) {
        return categoryMapper.deleteCategory(categoryIds);
    }
}
